
<?php if ($this->postEntry): $p = $this->postEntry; ?>

<div class="post-entry">
  <div class="post-header mg_bt_m">
    <h2 class="mg_clr"><?php echo $this->escape($p->title); ?>
<?php if ($p->published != TRUE): ?>
 &ndash; <em>draft</em>
<?php endif; ?>
	</h2>
    <div class="post-info"><small>
 <strong><a href="<?php echo $p->creatorUrl; ?>"><?php echo $p->creatorName; ?></a></strong>
 &bull; <?php echo $this->relTimeString($p->time); ?>
<?php if ($p->editLinkUrl): ?>
 &bull; <a href="<?php echo $p->editLinkUrl; ?>">Edit</a>
<?php endif; ?>
<?php if ($p->deleteLinkUrl): ?>
 &bull; <a href="<?php echo $p->deleteLinkUrl; ?>">Delete</a>
<?php endif; ?>
    </small></div>
  </div>
  <div class="post-body"><?php echo $p->content; ?></div>
</div>
<div class="widget">
  <div class="widget_title"><h3>Comments</h3></div>
  <div class="widget_content">
<?php
	$reqParams = array(
		'post_host_class' => 'post.note',
		'post_host_id' => $p->id,
		'post_class' => 'comment',
		'post_sort_mode' => 'oldest',
		'post_form_inline' => 1,
		'post_base_nav_url' => $p->url,
	);
	if ($this->commentOffset > 0) {
		$reqParams['post_list_start'] = $this->commentOffset;
	}
	echo $this->action('list', 'index', 'post', $reqParams);
?>
  </div>
</div>
<?php endif;
